﻿using System;

namespace NeatlyEditor
{
    public static class NeatlyCommandExecute
    {
        
        public static void BuildAllAssets()
        {
            try
            {
                NeatlyAssetPacker.BuildAllAsset();
            }
            catch (Exception e)
            {
                BuilderHelper.Log(e.Message);
                BuilderHelper.Log(e.StackTrace);
            }
        }
        
        public static void ExportProject()
        {
            try
            {
#if UNITY_ANDROID
                NeatlyProjectPacker.AndroidExportGradle();
#elif UNITY_IOS
        	    NeatlyProjectPacker.IOSExport();
#endif
            }
            catch (Exception e)
            {
                BuilderHelper.Log(e.Message);
                BuilderHelper.Log(e.StackTrace);
            }
        }
    }
}